import type { MenuList } from '~/types/menu'
import { DataBoard, User } from '@element-plus/icons-vue'
import { BookOpen, Building2, CalendarCog, MessageCircleMoreIcon, Notebook, UsersRound } from 'lucide-vue-next'

export const sideMenuList: MenuList = [
  {
    path: '/manage',
    title: '仪表盘',
    icon: DataBoard,
    meta: { cache: true },
  },
  {
    path: '/manage/user',
    title: '用户管理',
    icon: User,
    meta: { cache: true },
  },
  {
    title: '考试管理',
    icon: BookOpen,
    meta: { cache: true },
    children: [
      {
        path: '/manage/exam',
        title: '考试管理',
      },
      {
        path: '/manage/exam/question',
        title: '题目管理',
      },
      {
        path: '/manage/exam/record',
        title: '考试记录',
      },
    ],
  },
  {
    title: '论坛管理',
    icon: MessageCircleMoreIcon,
    meta: { cache: true },
    children: [
      {
        path: '/manage/forum',
        title: '论坛管理',
      },
      {
        path: '/manage/forum/posts',
        title: '帖子管理',
      },
      {
        path: '/manage/forum/reply',
        title: '回复管理',
      },
    ],
  },
  {
    path: '/manage/daily',
    title: '日报管理',
    icon: Notebook,
    meta: { cache: true },
  },
  {
    path: '/manage/class',
    title: '班级管理',
    icon: UsersRound,
    meta: { cache: true },
  },
  {
    path: '/manage/department',
    title: '部门管理',
    icon: Building2,
    meta: { cache: true },
  },
  {
    path: '/manage/ticket',
    title: '工单管理',
    icon: CalendarCog,
    meta: { cache: true },
  },
]
